Skip to content

aspose-cad-cloud/aspose-cad-cloud-dotnet

Repository files navigation

Nuget Nuget GitHub license GitHub last commit

AutoCAD File Processing .NET Cloud REST API

Aspose.CAD Cloud is a true REST API that enables you to perform a wide range of CAD and BIM drawings processing operations including manipulation, export and conversion in a cloud, with zero initial costs.

This repository contains Aspose.CAD Cloud .NET SDK source code which is written in C#. This SDK allows you to work with Aspose.CAD Cloud REST APIs in your .NET applications quickly and easily, with zero initial cost and gain all benefits of strong types and IDE highlights.

CAD Processing Features

  • Export CAD drawings to other file formats.
  • Get image properties of a CAD drawing.
  • Change the scale of an AutoCAD sketch.
  • Flip and rotate a CAD image.
  • Upload or download CAD drawings to the cloud storage.
  • Copy, move, delete CAD files from the cloud storage.

Read & Write CAD Formats

DXF (R12/2007/2010)

Save CAD As

Fixed Layout: PDF (as a vector and as a raster) Images: BMP, PNG, JPG, JPEG, JPEG2000, TIF, TIFF, PSD, GIF, WMF

Read CAD Formats

DWG (13, 14, 2000, 2004), DWG (2010, 2013, 2014), DWG (2015, 2017, 2018), DWT (13, 14, 2000, 2004), DWT (2010, 2013, 2014), DWT (2015, 2017, 2018), DWF, DGN v7, IGES (IGS), PLT, Industry Foundation Classes (IFC), STereoLithography (STL)

See API Reference for full API specification.

How to use the SDK?

The complete source code is available in this repository folder. You can either directly use it in your project via source code or get NuGet distribution (recommended). For more details, please visit our documentation website.

Prerequisites

To use Aspose CAD for Cloud .NET SDK you need to register an account with Aspose Cloud and lookup/create App Key and SID at Cloud Dashboard. There is free quota available. For more details, see Aspose Cloud Pricing.

Installation

Install Aspose.CAD-Cloud via NuGet

From the command line:

nuget install Aspose.CAD-Cloud From Package Manager:

PM> Install-Package Aspose.CAD-Cloud From within Visual Studio:

  1. Open the Solution Explorer.
  2. Right-click on a project within your solution.
  3. Click on Manage NuGet Packages...
  4. Click on the Browse tab and search for "Aspose.CAD-Cloud".
  5. Click on the Aspose.CAD-Cloud package, select the appropriate version in the right-tab and click Install.

Convert DWG to PNG in C# .Net

	// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
	var config = new Configuration
	{
		AppSid = "MY_CLIENT_ID",
		AppKey = "MY_CLIENT_SECRET",
		ApiBaseUrl = baseUrl,
	};

	var cadApi = new CadApi(config);
	var getSaveRequest = new GetDrawingSaveAsRequest("inputImage.dwg", "png", "InputFolder", "ResultFolder/resultImage.png", "Your storage");

	Stream cadApi.GetDrawingSaveAs(getSaveRequest);

Tests contain various examples of using the SDK.

Dependencies

SDK Advanages

  • SDK is fully in sync with the API, all missing methods are added
  • Classes, methods and properties have comments and are IDE-friendly
  • Integrated security
  • Usage of Request/Response classes to represent long lists of parameters. This allows for cleaner code and easier backwards-compatibility going forward

Licensing

All Aspose.CAD for Cloud SDKs, helper scripts and templates are licensed under MIT License.

Aspose.CAD Cloud SDKs in Popular Languages

.NET Java PHP Python Ruby Node.js
GitHub GitHub GitHub GitHub GitHub GitHub
NuGet Maven Composer PIP GEM NPM

Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial|

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published